<!DOCTYPE html>
<html lang="en">
    <head>
        {include file="public/header"}
        <script type="text/javascript">

        </script>
    </head>
    <body>

        <div class="col-lg-12 col-sm-12">
            <form id="form" class="form  form-horizontal" role="form" action="update" method="post">
                <input class="form-control" type="hidden" name="id" value="{$essay.es_id}">
                <p>
                    <label>选择试卷</label>
                    <select class="form-control" name="pid">
                        {volist name="paper" id="v"}
                        {php} if($v['pap_id'] == $essay['pap_id']) { {/php}
                        <option value="{$v.pap_id}" selected>{$v.pap_name}</option>
                        {php} }else{ {/php}
                        <option value="{$v.pap_id}">{$v.pap_name}</option>
                        {php} } {/php}
                        {/volist}
                    </select>
                </p>
                <p>
                    <label>问答题内容</label>
                    <div>
                        <script id="content" name="content" type="text/plain">{$essay.es_content}</script>
                    </div>
                </p>
                <p>
                    <label>参考答案</label>
                    <div>
                        <script id="consult" name="consult" type="text/plain">{$essay.es_consult}</script>
                    </div>
                </p>
            </form>
        </div>
        <div class="col-lg-12 col-sm-12">
            <a href="javascript:;" class="btn btn-primary" onclick="edu.submit('form',this)">确定</a>
        </div>                    
        {include file="public/board"}
        {include file="public/javascript"}
        {include file="public/jqueryform"}
        <script type="text/javascript" src="/admin/vendor/ue/ueditor.config.js"></script>
        <script type="text/javascript" src="/admin/vendor/ue/ueditor.all.js"></script>
        <script type="text/javascript" src="/admin/script/essay/edit.js"></script>
    </body>
</html>
